package com.chunmeng.service.impl;

import com.chunmeng.dao.ProfilePojoMapper;

import com.chunmeng.pojo.ProfilePojo;
import com.chunmeng.service.ProfileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author yd
 * @version 1.0
 * @date 2020/3/5 0005 黄啟军
 */
@Service
public class ProfileServiceImpl implements ProfileService {
    @Autowired
    ProfilePojoMapper pojoMapper;
    /**注册功能*/
    @Override
    public void register(ProfilePojo profilePojo) {
        pojoMapper.register(profilePojo);
    }
    /**登录功能的实现*/
    @Override
    public ProfilePojo login(String account,String password) {
        return pojoMapper.login(account,password);
    }
   /**查询全部*/
    @Override
    public List<ProfilePojo> selectAll() {
        return pojoMapper.selectAll();
    }

    @Override
    public List<ProfilePojo> list(Integer id) {
        return null;
    }
}
